#ifndef __COLOR_LIGHT_H__
#define __COLOR_LIGHT_H__

#include "stdint.h"

#define RMT_TX_CHANNEL RMT_CHANNEL_0

#define EXAMPLE_CHASE_SPEED_MS (10)

#define CONFIG_WS2812_GPIO_PIN     19
#define CONFIG_WS2812_LED_NUM      48//256

enum{
   LED_ONOFF,
   LED_RED,
   LED_GREEN,
   LED_BLUE,
   LED_COLOR,
   LED_MODE
};

typedef struct{
    uint16_t led_num; //灯珠数量
	uint8_t onoff;
    uint8_t mode;
	uint8_t red;
	uint8_t green;
	uint8_t blue;
	uint16_t color_temp;
}led_attr_t;

uint8_t led_strip_init(void);
void led_strip_set_num(uint16_t num);
void led_strip_set_color(uint16_t index, uint8_t red, uint8_t green, uint8_t blue);

#endif

